@Repository
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th=
        "http://www.thymeleaf.org" lang="en">
<head th:replace="fragments/header :: head">
</head>
<body>
<div class="container">
  <div class="row">
    <div class="col-md-3">
      <h5 class="my-4"> </h5>
      <ul class="navbar-nav mr-auto sidebar-menu">
        <li class="nav-item" >
          <a class="nav-link" th:href="@{/home}"><i class="icon
ion-home"></i>我的首页</a>
        </li>
        <li class="nav-item" sec:authorize="hasRole('ROLE_USER')">
          <a class="nav-link" th:href="@{/profile}"><i class="icon
ion-person"></i>我的信息</a>
        </li>
        <li class="nav-item" sec:authorize="hasRole('ROLE_USER')">
          <a class="nav-link" th:href="@{/order}"><i class="icon
ion-android-cart"></i>我的购物车</a>
        </li>
        <li class="nav-item" sec:authorize="hasRole('ROLE_USER')" >
          <a class="nav-link" th:href="@{/historyOrder}"><i class=
                                                                    "icon ion-clipboard"></i>我的历史订单</a>
        </li>
        <li class="nav-item" sec:authorize="hasRole('ROLE_ADMIN')" >
          <a class="nav-link" th:href="@{/books}"><i class="icon
ion-filing"></i>所有库存</a>
        </li>
        <li class="nav-item" sec:authorize="hasRole('ROLE_ADMIN')">
          <a class="nav-link" th:href="@{/orders/all}"><i class="icon
ion-document-text"></i>所有订单</a>
        </li>
        <li class="nav-item" sec:authorize="hasRole('ROLE_ADMIN')">
          <a class="nav-link" th:href="@{/users}"><i class="icon ion- person-
stalker"></i>所有用户</a>
        </li>
      </ul>
    </div>
  </div>
</div>
</body>
</html>